package com.library.settings.service.impl;

import com.library.settings.mapper.AdminMapper;
import com.library.settings.pojo.Admin;
import com.library.settings.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service("adminService")
public class AdminServiceImpl implements AdminService {
    @Autowired
    private AdminMapper adminMapper;

    @Override
    public Admin queryAdminByLogActAndPassword(Map<String, Object> map) {
        return adminMapper.queryAdminByLogActAndPassword(map);
    }

    @Override
    public int updateAdminByAdminId(Admin admin) {
        return adminMapper.updateAdmin(admin);
    }
}
